package com.yellowpage.ndc.data;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * ProdGroupHis entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NDC_PROD_GROUP_HIS")
public class ProdGroupHis implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer groupId;
	private Integer type;
	private String content;
	private Integer createUser;
	private Date createTime;
	private String note;

	// Constructors

	/** default constructor */
	public ProdGroupHis() {
	}

	/** full constructor */
	public ProdGroupHis(Integer groupId, Integer type, String content,
			Integer createUser, Date createTime, String note) {
		this.groupId = groupId;
		this.type = type;
		this.content = content;
		this.createUser = createUser;
		this.createTime = createTime;
		this.note = note;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "GROUP_ID")
	public Integer getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	@Column(name = "TYPE")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "CONTENT")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	
	@Column(name = "NOTE", length = 128)
	public String getNote() {
		return this.note;
	}

	

	
	public void setNote(String note) {
		this.note = note;
	}

}